package com.wei.czz.framework.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wei.czz.framework.common.entity.LimitConfigEntity;
import org.apache.ibatis.annotations.Param;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2023-02-16 21:38:02
 * className: LimitConfigDao 限流请求数据库交互接口
 * version: 1.0
 * description:
 */
public interface LimitConfigDao extends BaseMapper<LimitConfigEntity> {

    /**
     * 修改限流配置
     * @param limitConfig 限流配置对象
     * @return 更新数据条数
     */
    int optimisticUpdate(@Param("limitConfig") LimitConfigEntity limitConfig);
}
